home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / U-Z / Viewer.src.cpt / LineFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-12-30  |  417 b   |  23 lines  |  [TEXT/KAHL]

  1. /* Header for LineFile object */
  2.  
  3. #ifndef _LineFile_
  4. #define _LineFile_
  5.  
  6. enum { LF_Open, LF_GetLine, LF_Close };    /* messages */
  7.  
  8. #define L_BUFSIZE    512L
  9.  
  10. typedef struct {
  11.     int        refnum;
  12.     long    size;
  13.     int        pos;        /* position in buffer */
  14.     int        count;        /* chars in buffer */
  15.     long    start;        /* first char of buffer */
  16.     Handle    buf;
  17.     } LFile;
  18.  
  19. /* prototype for entry */
  20. void LineFile( int message, LFile *lfile, ... );
  21.  
  22. #endif
  23.